<template>
    <div>
        <button @click="btnClick">点击{{ count }}</button>
    </div>
</template>

<script>
export default {
    data() {
        return {
            count: 1
        }
    },
    methods: {
        btnClick() {
            const a = 1
            this.count += 1

        },
        foo() {

        }
    }
}
</script>

<style lang="css" scoped>
body {
    color: red;

    
}
</style>